package com.naiterui.ehp.bs.cms.modules.base.mapper;

import org.apache.ibatis.annotations.Param;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.naiterui.ehp.bs.cms.common.constants.DsName;
import com.naiterui.ehp.bs.cms.modules.base.entity.Agreement;
import com.naiterui.ehp.bs.cms.modules.base.vo.AgreementPageVO;

/**
 * 协议管理
 * 
 * @author yangfuya
 * @since 2021/10/12
 */
@DS(DsName.EHP)
public interface AgreementBaseMapper extends BaseMapper<Agreement> {

    /**
     * 获取分页列表
     * 
     * @param page
     * @param entityWrapper
     * @return
     */
    Page<AgreementPageVO> getPage(@Param("page") IPage<AgreementPageVO> page,
        @Param("ew") Wrapper<AgreementPageVO> entityWrapper);
}
